import request from '@/utils/request'

// 上传文件
export function uploadFile(data) {
  return request({
    url: '/file/upload',
    method: 'post',
    data: data
  })
}

// 批量上传文件
export function uploadFiles(data) {
  return request({
    url: '/file/uploads',
    method: 'post',
    data: data
  })
}